import logging, sys

photo_url_prefix="https://m.facebook.com/photo/view_full_size/?fbid="
info_url_prefix="https://m.facebook.com/photo.php?fbid="
sleeptime = 0.1

logging.basicConfig(stream=sys.stderr, level=logging.INFO)

ndt_fbid_file = open("data/fb_ndt/photos_fbid", "r")

# Add your cookies here by exporting them from your Firefox session
raw_cookies = f"Cookie: a=b; x=y;"

literal_cookies = raw_cookies[8:]
cookies = dict(x.split("=") for x in literal_cookies.split("; "))

headers={'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0', 'Host': 'm.facebook.com',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language': 'fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3',
# 'Accept-Encoding': 'gzip, deflate, br',
'Connection': 'keep-alive',
'Upgrade-Insecure-Requests': '1',
'Cache-Control': 'max-age=0',
'TE': 'Trailers',
}
